<?php /* Smarty version 2.6.18, created on 2010-03-05 23:31:41
         compiled from systemUG.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'systemUG.tpl', 16, false),)), $this); ?>
<div id="main_content">
<div id="blanket" style="display:none;"></div>
<h1>User Groups</h1>
<form method="POST" action="/admin/systemUGSaveListChanges">
<div id="pageNavPosition" style="color:#84b5cc" width="100%"></div>
<table width="100%" id="results">
	<tr bgcolor="#cccccc">
		<td width="5%"></td>
		<td width="4%" align="center"><label><b>Delete</b></label></td>
		<td><label><b>User Group Code</b></label></td>
		<td><label><b>Name</b></label></td>
		<td><label><b>Created By</b></label></td>
		<td><label><b>Date Created</b></label></td>
	</tr>
	<?php $_from = $this->_tpl_vars['groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['group']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => "blue,notify"), $this);?>
">
			<td>
				<input type="button" value="Edit" onclick="edit_item(<?php echo $this->_tpl_vars['group']['id']; ?>
);">
			</td>
			<td align="center"><input type="checkbox" name="del_<?php echo $this->_tpl_vars['group']['id']; ?>
" value="1"></td>
			<td><label>&nbsp;&nbsp;<?php echo $this->_tpl_vars['group']['user_group_code']; ?>
</label></td>
			<td><label>&nbsp;&nbsp;<?php echo $this->_tpl_vars['group']['name']; ?>
</label></td>
			<td><label><?php echo $this->_tpl_vars['group']['created_by']; ?>
</label></td>
			<td><label><?php echo $this->_tpl_vars['group']['date_created']; ?>
</label></td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>	
</table>
<input type="button" value="Add" onclick="edit_item(0);">
<input type="submit" value="Save Changes">
</form>
<?php echo '
<script language="javascript">
	ekimo_drag_region("","popUpDiv");
	
	function edit_item(id){
		doajaxAction(\'/admin/systemUGEdit/id/\'+id,0,\'edit_content\');
		popup(\'popUpDiv\');
	}
	
	var pager = new Pager(\'results\', 10); 
	pager.init(); 
	pager.showPageNav(\'pager\', \'pageNavPosition\'); 
	pager.showPage(1);
</script>
'; ?>

<div id="popUpDiv" style="position:absolute;display:none;z-index:1002;width:400px;">
	<table class="popup" border="0" cellspacing=0 cellpadding=0>
		<tr>
			<td>
				<div class="pop">
					<div class="top_pop"><img src="/app/default/www/images/top_left_pop.jpg" /></div> 
						<div id="edit_content" class="content">
						</div>
					<div class="btm_pop"><img src="/app/default/www/images/btm_left_pop.jpg"  alt="" />				</div>
				</div>
			</td>
		</tr>
	</table> 
</div>
</div>


	
	
	